package com.itheima.chapter10.thread.demo13;

import com.itheima.chapter10.thread.demo11.MyRunnable;

//线程安全问题-----Lock锁
public class Demo {
    public static void main(String[] args) {
        MyRunnable mr =new MyRunnable();
        //System.out.println("mr:"+mr);

        Thread t1 =new Thread(mr,"窗口一");
        Thread t2 =new Thread(mr,"窗口二");
        Thread t3 =new Thread(mr,"窗口三");
        t1.start();
        t2.start();
        t3.start();

    }
}
